/*
 * Jabberd2-json-libs-java  
 * Copyright (C) 2010 Antti Leppä / Foyt
 * http://www.foyt.fi
 * 
 * License: 
 * 
 * Licensed under GNU General Public License Version 3 (GPL) 
 * http://www.gnu.org/licenses/gpl.html
 */

package fi.foyt.jabberd2json;

/**
 * Defines object set field
 */
public class ObjectSetField {

  /**
   * Constructs new object set field
   * 
   * @param type field type
   * @param key field key
   * @param value field value
   */
  public ObjectSetField(ObjectType type, String key, String value) {
    this.key = key;
    this.value = value;
    this.type = type;
  }
  
  /**
   * Returns field's key
   * 
   * @return Field's key
   */
  public String getKey() {
    return key;
  }
  
  /**
   * Returns field's value
   * 
   * @return Field's value
   */
  public String getValue() {
    return value;
  }

  /**
   * Returns field's type
   * 
   * @return Field's type
   */
  public ObjectType getType() {
    return type;
  }
  
  private String key;
  private String value;
  private ObjectType type;
}
